package com.sz.mapper;

import com.sz.model.QuestionAnswer;
import com.sz.model.QuestionType;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ProblemMapper {

    public List<QuestionType> getAllQuestion(); //查询所有的问题类型;

    public List<QuestionAnswer> getAllAnswer(int kid);//查询一种类型的所有问题答案;


    List<QuestionType> getQuestion(String question); //模糊查询问题类型;

    List<QuestionAnswer> getAnswer(String answer);   //模糊查询问题答案;
}
